package com.ftg.learn.psi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 销售订单明细表
 * </p>
 *
 * @author guoBingTong
 * @since 2022-05-18
 */
@TableName("sales_detail")
public class SalesDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 销售订单
     */
    private Integer salesOrderId;

    /**
     * 销售时间
     */
    private Integer itemId;

    /**
     * 销售单价
     */
    private BigDecimal salesPrice;

    /**
     * 销售数量
     */
    private Integer count;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getSalesOrderId() {
        return salesOrderId;
    }

    public void setSalesOrderId(Integer salesOrderId) {
        this.salesOrderId = salesOrderId;
    }
    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }
    public BigDecimal getSalesPrice() {
        return salesPrice;
    }

    public void setSalesPrice(BigDecimal salesPrice) {
        this.salesPrice = salesPrice;
    }
    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "SalesDetail{" +
            "id=" + id +
            ", salesOrderId=" + salesOrderId +
            ", itemId=" + itemId +
            ", salesPrice=" + salesPrice +
            ", count=" + count +
        "}";
    }
}
